package com.snail.ron.design.factory.abstractFactory.facory.impl;

import com.snail.ron.design.factory.abstractFactory.facory.AbstractFactory;
import com.snail.ron.design.factory.abstractFactory.model.Keyboard;
import com.snail.ron.design.factory.abstractFactory.model.MainFrame;
import com.snail.ron.design.factory.abstractFactory.model.Monitor;
import com.snail.ron.design.factory.abstractFactory.model.impl.HPKeyboard;
import com.snail.ron.design.factory.abstractFactory.model.impl.HPMainFrame;
import com.snail.ron.design.factory.abstractFactory.model.impl.HPMonitor;

/**
 * @author xueguoping
 * @desc: TODO
 * @date 2022/4/1411:21
 */
public class HPAbstractFactory implements AbstractFactory {
    @Override
    public Keyboard createKeyboard() {
        return new HPKeyboard();
    }

    @Override
    public MainFrame createMainFrame() {
        return new HPMainFrame();
    }

    @Override
    public Monitor createMonitor() {
        return new HPMonitor();
    }
}
